package com.ts.crawler.scheduler;

import us.codecraft.webmagic.Request;
import us.codecraft.webmagic.Task;
import us.codecraft.webmagic.scheduler.Scheduler;

import java.util.LinkedList;

public class FlightInfoScheduler implements Scheduler{

    LinkedList<Request> requests;

    public FlightInfoScheduler(LinkedList<Request> requests){
        this.requests = requests;
    }

    public void push(Request request, Task task) {
    }

    public Request poll(Task task) {
        return requests.pop();
    }
}
